package log4j2;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.Test;

public class App {

    private static final Logger logger = LogManager.getLogger(App.class.getName());

    @Test
    void testLog() {
        System.out.println("level = " + logger.getLevel());
        logger.error("error");
        logger.warn("warn");
        logger.debug("debug");
        logger.info("info");
        logger.trace("trace");
    }
}
